<?php
defined('JOC') or die;

//define the Root path.
define('ROOT',dirname(__FILE__)) ;

//inlcude the config file
require_once(ROOT.'/config.php') ;

//error report
error_reporting(defined('ERROR_LEVEL') ? ERROR_LEVEL : 0 ) ;

//include the abstract class data_type
require_once(ROOT.'/core/data_type.class.php') ;

//include autoload function to include class files
require_once(ROOT.'/core/autoload.php') ;

//include the file where is defined the db class
require_once(ROOT.'/core/db/db.class.php') ;

//crete an instance of db with the corresponding DB_ENGINE in joc-cms v 1.0 only mysql will be supported ;
$db = new db( defined('DB_ENGINE') ? DB_ENGINE : 'mysql' ) ;

//include the request lib
require_once(ROOT.'/core/request/request.class.php') ;

//instance a request class to save a copy of $_POST && $_GET in the $request 
//from now on call R:: instead of $resuest ;
$request = new request() ;


require_once(ROOT.'/core/session/user.class.php') ;

$user = new user() ;
